package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsSiteLyMapper;
import com.ruoyi.cms.domain.CmsSiteLy;
import com.ruoyi.cms.service.ICmsSiteLyService;

/**
 * CMS建站系统-用户留言Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-15
 */
@Service
public class CmsSiteLyServiceImpl implements ICmsSiteLyService 
{
    @Autowired
    private CmsSiteLyMapper cmsSiteLyMapper;

    /**
     * 查询CMS建站系统-用户留言
     * 
     * @param id CMS建站系统-用户留言主键
     * @return CMS建站系统-用户留言
     */
    @Override
    public CmsSiteLy selectCmsSiteLyById(Long id)
    {
        return cmsSiteLyMapper.selectCmsSiteLyById(id);
    }

    /**
     * 查询CMS建站系统-用户留言列表
     * 
     * @param cmsSiteLy CMS建站系统-用户留言
     * @return CMS建站系统-用户留言
     */
    @Override
    public List<CmsSiteLy> selectCmsSiteLyList(CmsSiteLy cmsSiteLy)
    {
        return cmsSiteLyMapper.selectCmsSiteLyList(cmsSiteLy);
    }

    /**
     * 新增CMS建站系统-用户留言
     * 
     * @param cmsSiteLy CMS建站系统-用户留言
     * @return 结果
     */
    @Override
    public int insertCmsSiteLy(CmsSiteLy cmsSiteLy)
    {
        return cmsSiteLyMapper.insertCmsSiteLy(cmsSiteLy);
    }

    /**
     * 修改CMS建站系统-用户留言
     * 
     * @param cmsSiteLy CMS建站系统-用户留言
     * @return 结果
     */
    @Override
    public int updateCmsSiteLy(CmsSiteLy cmsSiteLy)
    {
        return cmsSiteLyMapper.updateCmsSiteLy(cmsSiteLy);
    }

    /**
     * 批量删除CMS建站系统-用户留言
     * 
     * @param ids 需要删除的CMS建站系统-用户留言主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteLyByIds(Long[] ids)
    {
        return cmsSiteLyMapper.deleteCmsSiteLyByIds(ids);
    }

    /**
     * 删除CMS建站系统-用户留言信息
     * 
     * @param id CMS建站系统-用户留言主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteLyById(Long id)
    {
        return cmsSiteLyMapper.deleteCmsSiteLyById(id);
    }
}
